<!DOCTYPE html>
<html>
<head>
</head>
<body>
  <input type="text" id="inputField" placeholder="请输入文本">
  <button onclick="displayText()">显示文本</button>
  <div id="outputDiv"></div>

  <script>
    function displayText() {
      var inputText = document.getElementById("inputField").value;
      document.getElementById("outputDiv").innerHTML = inputText;
    }
  </script>
</body>
</html>